package io.github.iogogogo.commons.util;

import io.github.iogogogo.commons.support.mp.IdWorker;

import java.util.UUID;

/**
 * Created by tao.zeng on 2024/11/7.
 */
public class IdHelper {

    public static Long id() {
        return IdWorker.getId();
    }

    public static Long id(Object entity) {
        return IdWorker.getId(entity);
    }

    public static String uuid() {
        return UUID.randomUUID().toString().toLowerCase().replace("-", "");
    }
}
